Skip to content

[CI] ci: add ai workflow for fixing nightly failures - #716

Merged
jokasimr merged 3 commits into
mainfrom
ai-fix-workflow
Aug 28, 2026
Merged

[CI] ci: add ai workflow for fixing nightly failures#716
jokasimr merged 3 commits into
mainfrom
ai-fix-workflow

Conversation

@jokasimr

Copy link
Copy Markdown
Contributor

This is a suggestion for how we could set up a workflow that lets claude investigate nightly test failures and suggest a fix.

@jokasimr
jokasimr requested a review from MridulS August 20, 2026 07:32
@github-actions github-actions Bot added the CI label Aug 20, 2026
@github-actions github-actions Bot changed the title ci: add ai workflow for fixing nightly failures [CI] ci: add ai workflow for fixing nightly failures Aug 20, 2026

@SimonHeybrock SimonHeybrock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems very complicated. Why not just tell Claude to open a PR if it finds a fix, else and issue with results of investigation?

@jokasimr

jokasimr commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

This seems very complicated. Why not just tell Claude to open a PR if it finds a fix, else and issue with results of investigation?

We could do that. (I think I would prefer that too.)

The advantage of this approach is that the agent only has read-only access to the github repo, except for the one PR that is opened automatically if it leaves changes. 🤷

@jokasimr

Copy link
Copy Markdown
Contributor Author

Okay I think the new version @SimonHeybrock suggested where the surrounding logic (context creation, PR submission, etc) is removed and the agent is told to handle it is much better.

@jokasimr
jokasimr force-pushed the ai-fix-workflow branch 2 times, most recently from f2c4bd3 to 2a2980b Compare August 20, 2026 09:53
@jokasimr
jokasimr requested a review from SimonHeybrock August 20, 2026 09:56
@jokasimr

Copy link
Copy Markdown
Contributor Author

It would be nice to get this experiment up and running. We will likely have to tweak things based on how it does.

@SimonHeybrock SimonHeybrock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable. I suspect we will get cases where Anthropic API is down (or similar issues), resulting in silent Nightly fails that receive neither issue nor PR, but we can address that later based on how often it happens.

@jokasimr
jokasimr enabled auto-merge August 28, 2026 11:06
@jokasimr
jokasimr added this pull request to the merge queue Aug 28, 2026
Merged via the queue into main with commit a9b8337 Aug 28, 2026
5 checks passed
@jokasimr
jokasimr deleted the ai-fix-workflow branch August 28, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants